﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using BUSAuction;
using DTOAuction;

namespace _HTTT_HD_QuanLyGiaoDuc_WebService
{
    /// <summary>
    /// Summary description for ServiceXuLyThongTinHocPhan
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class ServiceXuLyThongTinHocPhan : System.Web.Services.WebService
    {
        [WebMethod]
        public int themHocPhanMoMoi(int maKhoaHoc, int maMonHoc, int namHoc, int hocKy)
        {
            BUSHocPhanMo busHocPhanMo = new BUSHocPhanMo();
            return busHocPhanMo.themHocPhanMoMoi(maKhoaHoc, maMonHoc, namHoc, hocKy);
        }

        [WebMethod]
        public List<HOCPHANMO> layDanhSachHocPhanMo_NamHoc_HocKy(int namHoc, int hocKy)
        {
            BUSHocPhanMo busHocPhanMo = new BUSHocPhanMo();
            return busHocPhanMo.layDanhSachHocPhanMo_NamHoc_HocKy(namHoc, hocKy);
        }

        [WebMethod]
        public int suaHocPhanMo_SLSVDK_DUKIEN(int slsvdk_dukien, int maKhoaHoc, int maMonHoc, int namHoc, int hocKy)
        {
            BUSHocPhanMo busHocPhanMo = new BUSHocPhanMo();
            return busHocPhanMo.suaHocPhanMo_SLSVDK_DUKIEN(slsvdk_dukien, maKhoaHoc, maMonHoc, namHoc, hocKy);
        }

    }
}
